package com.lxk.finance.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

import java.io.Serial;

/**
 * 账户流水对象 acc_user_account_record
 *
 * @author LXK-RY5
 * @date 2024-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("acc_user_account_record")
public class AccUserAccountRecord extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 账户类型
     */
    private Integer accountType;

    /**
     * 流水金额
     */
    private BigDecimal amount;

    /**
     * 账号ID
     */
    private Long accountId;

    /**
     * 流水号
     */
    private String accountSn;

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     * 额外信息
     */
    private String extraInfo;

    /**
     * 剩余金额
     */
    private BigDecimal leftAmount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 收支状态,1=收入 0=支出 income_status
     */
    private Integer incomeStatus;

    /**
     * 
     */
    @TableLogic
    private String delFlag;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 是否提现(0不是 1是)withdraw_status
     */
    private Integer withdrawStatus;


}
